package com.hdax.dm.Controller;

import com.hdax.dm.dto.qinziDto.*;
import com.hdax.dm.service.multipleService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/item")
public class multipleController {

    @Autowired
    private multipleService multipleService;

    /**
     * 获取页面广告地址及信息页面
     */
    @PostMapping("multiple/getAdimgUrl")
    public CommonResponse<List<getAdimgUrlDto>> getAdimgUrl(@RequestBody Map<String,Object> params){
        return multipleService.getAdimgUrl(params);
    }
    /**
     * 获取轮播图数据信息
     */
    @PostMapping("multiple/getCarouselData")
    public CommonResponse<List<getCarouselDataDto>> getCarouselData(@RequestBody Map<String,Object> params){
        return multipleService.getCarouselData(params);
    }
    /**
     * 获取猜你喜欢界面数据信息
     */
    @PostMapping("multiple/getGuessYouLike")
    public CommonResponse<List<getGuessYouLikeDto>> getGuessYouLike(@RequestBody Map<String,Object> params){
        return multipleService.getGuessYouLike(params);
    }
    /**
     * 获取精彩聚焦界面数据信息
     */
    @PostMapping("multiple/getWonderfulData")
    public CommonResponse<List<getWonderfulDataDto>> getWonderfulData(@RequestBody Map<String,Object> params){
        return multipleService.getWonderfulData(params);
    }
    /**
     * 获取热门排行数据信息
     */
    @PostMapping("multiple/getPopularSearch")
    public CommonResponse<List<getPopularSearchDto>> getPopularSearch(@RequestBody Map<String,Object> params){
        return multipleService.getPopularSearch(params);
    }
    /**
     * 获取日历栏界面数据信息
     */
    @PostMapping("multiple/getCalendarData")
    public CommonResponse<List<getCalendarDataDto>> getCalendarData(@RequestBody Map<String,Object> params){
        return multipleService.getCalendarData(params);
    }

    /**
     * 获取亲子界面ParentChildTabs 界面数据信息
     */
    @PostMapping("multiple/getParentChild")
    public CommonResponse<List<getParentChildDto>> getParentChild(@RequestBody Map<String,Integer> params){
        return multipleService.getParentChild(params);
    }

}
